import Vue from 'vue'
import App from './App.vue'
import router from './router'
Vue.config.productionTip = false
import store from './store'
import './assets/font/font.css'
// 解决移动端300毫秒延迟问题
import FastClick from 'fastclick'
FastClick.attach(document.body);
// 使用图片懒加载
import VueLazyLoad from 'vue-lazyload'


// 导入 ui组件 库
import { Swipe, SwipeItem,Lazyload,Button} from 'vant';
Vue.use(Swipe);
Vue.use(SwipeItem)
Vue.use(Lazyload)
Vue.use(Button)
Vue.use(VueLazyLoad, {
  // 指定懒加载时候显示的背景图片，需要使用require引入
  loading: require('./assets/img/lazy/load2.jpg')
})

new Vue({
  render: h => h(App),
  router,
  store,
}).$mount('#app')
